package com.holyant.report.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.domain.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 渠道销售报dto
 * 
 * @author fkmalls
 * @date 2022-01-20
 */
@Data
@ApiModel("渠道销售报")
public class RptChannelSalesDto extends BaseDto {

    private static final long serialVersionUID = 1L;

    /** 品牌id */
    @ApiModelProperty(value = "品牌id")
    private Long brandId;
    /** 品牌名称 */
    @ApiModelProperty(value = "品牌名称")
    private String brandName;
    /** 渠道属性 10 B2B 20 C2P 30 KA 40 POP */
    @ApiModelProperty(value = "渠道属性")
    private Integer channelAttr;
    @Excel(name = "渠道属性")
    private String channelAttrDisplay;
    /** 店铺/客户id */
    @ApiModelProperty(value = "店铺/客户id")
    private Long channelId;
    /** 店铺/客户名称 */
    @Excel(name = "渠道")
    @ApiModelProperty(value = "渠道")
    private String channelName;
    /** 统计日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @Excel(name = "统计日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "统计日期")
    private LocalDateTime recordDate;
    /** niv */
    @Excel(name = "niv")
    @ApiModelProperty(value = "niv")
    private BigDecimal niv;
    /** 销量 */
    @Excel(name = "销量")
    @ApiModelProperty(value = "销量")
    private BigDecimal qty;
}
